
$(document).ready(function () {
    console.log("Hello");
    $("#search").change(function () {
        var search = $("#search").val();
        console.log(search);
        if (search == "") {
            $(".resultbox").html("");
        } else {
            $.ajax({
                url: "/search/" + search,
                method: "GET",
                success: function (data) {
                    $(".resultbox").html(data);
                }
            });
        }
    });

});